package com.zero.test3;

public class Dog extends SwimAdapter {
    public Dog() {
    }

    public Dog(String name, String age, String color) {
        super(name, age, color);
    }

    @Override
    public void eat() {
        System.out.println(getColor()+"色的"+ getAge()+ "岁的狗"+getName()+"在吃骨头");
    }
    public void lookHome(){
        System.out.println(getColor()+"色的"+ getAge()+ "岁的狗"+getName()+"在看家");
    }

    @Override
    public void swim() {
        System.out.println("狗在游泳");
    }
}
